﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="New.aspx.cs" Inherits="WebGui.Admin.New" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        Start tid<asp:TextBox ID="TxtStart" runat="server" />
        <asp:RequiredFieldValidator ControlToValidate="TxtStart" ID="DateemptyvalidatorStarttime" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
       <asp:RegularExpressionValidator id="datevalidatorStarttime" runat="server" ErrorMessage="Not a date" ControlToValidate="TxtStart" 
       ValidationExpression="\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}"></asp:RegularExpressionValidator>   
        <br />
        Slut tid<asp:TextBox ID="TxtEnd" runat="server" />
        <asp:RequiredFieldValidator ControlToValidate="TxtEnd" ID="Dateemptyvalidatorendtime" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
       <asp:RegularExpressionValidator id="datevalidatorEndtime" runat="server" ErrorMessage="Not a date" ControlToValidate="TxtEnd" 
       ValidationExpression="\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}"></asp:RegularExpressionValidator>
        <br />
        kommentar<asp:TextBox ID="TxtComment" runat="server" />
        <br />
        Lektions type<asp:DropDownList ID="DdlType" runat="server" DataSourceID="SqlDataSource" DataTextField="Name"
            DataValueField="Id" 
            onselectedindexchanged="DdlType_SelectedIndexChanged" 
            AutoPostBack="True" />
        <asp:SqlDataSource ID="SqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:DIBSConnectionString %>"
            SelectCommand="SELECT [Id], [Name] FROM [Type]"></asp:SqlDataSource><br/>
        <asp:Label ID="lblElev" runat="server" Text="Elev " Visible="False"></asp:Label>
        <asp:DropDownList ID="DdlUser" runat="server">
        </asp:DropDownList>
        <br />
        <asp:Button ID="BtnSave" runat="server" onclick="BtnSave_Click" Text="Gem" />
        <asp:Button ID="BtnClose" runat="server" onclick="BtnClose_Click" 
            Text="Close" />
        <br />
    </div>
    </form>
</body>
</html>
